function array_find_item (arr , obj , key) {
    let res_index = -1
    arr.find((item , index)=>{
        
        if (item[key] == obj[key]) {
            res_index = index
        }
        return item[key] == obj[key]
    })
    return res_index
}

module.exports = { array_find_item }